// Programming_Scala/src/ch12/lazy-fibonacci-script.scala

lazy val fib: Stream[ Int ] = 
  Stream.cons( 0, Stream.cons( 1, fib.zip( fib.tail ).map( p => p._1 + p._2 ) ) )

fib.take( 10 ).print

